package com.ferry.serial.api;

import java.io.InputStream;
import java.nio.ByteBuffer;

/**
 * Created by daiyong
 */
public interface InputBuf {

	//bio
	InputStream inputStream();

	//nio
	ByteBuffer byteBuffer();

	int size();

	boolean hasMemoryAddress();

	boolean release();

}
